package com.hotleproject.mapper;

import com.hotleproject.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface OrderMapper {
    int getCount();
    List<Order> pageList(int pageNo, int pageSize);

    int getCountByUser();
    List<Order> selectOrderByUser(String username,int pageNo, int pageSize);
    //酒店管理员订单处理
    int getSingleHotleCount();
    List<Order> SingleHotlepageList(String hotlename,int pageNo, int pageSize);
}
